<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%pms_albums_comment}}".
 *
 * @property integer $comtid
 * @property integer $userid
 * @property integer $albumid
 * @property string $content
 * @property integer $created
 * @property integer $status
 */
class AlbumsComment extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%pms_albums_comment}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['comtid'], 'required'],
            [['comtid', 'userid', 'albumid', 'created', 'status'], 'integer'],
            [['content'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'comtid' => 'Comtid',
            'userid' => 'Userid',
            'albumid' => 'Albumid',
            'content' => 'Content',
            'created' => 'Created',
            'status' => 'Status',
        ];
    }
}
